package com.cskaoyan.controller;

import com.cskaoyan.bean.User;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * @author stone
 * @date 2022/03/24 17:07
 */
@RestController
@RequestMapping("user")
public class UserController {

    @GetMapping("login")
    public String login(User user) {
        return "success";
    }
    //@RequestMapping("login")
    @PostMapping("login")
    public String logincopy(@RequestBody User user) {
        return "success";
    }
    @RequestMapping("login2")
    public String login2(@RequestBody Map user) {
        return "success";
    }
}
